package com.itheima.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.goods.pojo.Goods;
import entity.PageResult;
import entity.QueryPageBean;
import entity.Result;

import java.util.List;

public interface GoodsService extends IService<Goods> {
    Result findAll();

//    PageResult findPage(QueryPageBean queryPageBean);

    Result findById(Integer id);

    Result add(Goods goods);

    Result delete(Integer id);

    Result upGoods(Integer id);

    Result downGoods(Integer id);

    Result updateStatus(Integer id, String status);

    Result findPage(Integer page, Integer size, Object searchMap);


    Result updateGoods(Integer id, Goods goods);
}
